package cn.xd.base.application.assembler;

import cn.xd.base.domain.bean.response.AdminOrgDTO;
import cn.xd.base.domain.entity.AdminOrg;
import cn.xd.base.persistence.dos.AdminOrgDO;
import cn.xd.core.converter.Converter;
import cn.xd.core.converter.ReferenceMapper;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

@Mapper(uses = ReferenceMapper.class)
public interface AdminOrgAssembler extends Converter<AdminOrgDTO, AdminOrgDO> {
    AdminOrgAssembler INSTANCE = Mappers.getMapper(AdminOrgAssembler.class);

    AdminOrgDTO toDTO(AdminOrg adminOrg);

    List<AdminOrgDTO> toDTOs(List<AdminOrg> adminOrgs);

}
